package com.hpli.domain.strategy.service.armory;

import java.util.Date;

public interface IStrategyDispatch {
    /**
     * 随机获取奖品
     * @param strategyId 策略ID
     * @return 奖品ID
     */
    Integer getRandomAwardId(Long strategyId);

    Integer getRandomAwardId(Long strategyId, String ruleWeightValue);

    Integer getRandomAwardId(String key);

    /**
     * 根据策略id和奖品id扣减奖品库存
     * @param strategyId 策略ID
     * @param awardId 奖品ID
     * @param endDateTime 活动结束时间
     * @return 扣减结果
     */
    Boolean subtractionAwardStock(Long strategyId, Integer awardId, Date endDateTime);
}
